package day6;


public class Draw {
    public int hight=5;
    public int longth=10;
    public static void main(String[] args) {
        Draw d=new Draw();
        d.drawTrian();
        d.drawRec();
        d.drawPra();
    }

    public void drawTrian(){
        for (int i=0;i<hight;i++){
            for (int j=i;j<hight;j++){
                System.out.print("*");
            }
            System.out.println();
        }
        System.out.println();
        System.out.println();
    }
    public void drawRec(){
        for (int i=0;i<hight;i++){
            for (int j=longth;j>0;j--){
                System.out.print("*");
            }
            System.out.println();
        }
        System.out.println();
        System.out.println();
    }
    public void drawPra(){
        String str="";
        for (int i=0;i<hight;i++){
            System.out.print(str);
            str+=" ";
            for (int j=longth;j>0;j--){
                System.out.print("*");
            }
            System.out.println();
        }

    }
}
